package priv.project.pojo;/**
 * @author： li
 * @date： 2023-02-14 15:41
 * @version 1.0
 */

import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * @author： ljm
 * @date： 2023-02-14 15:41
 * @version 1.0
 */
public class ResultMessage {
    private int code=500;
    private String msg="success";
    private Object data;
    private Long count;

    public ResultMessage() {
    }

    public ResultMessage(int code, String msg, Object data, Long count) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.count = count;
    }

    public ResultMessage(int i, String s) {
        this.code=i;
        this.msg=s;
    }

    public ResultMessage(int i, String s, Object d) {
        this.code=i;
        this.msg=s;
        this.data=d;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }
}
